List
A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.
Parameters
the type of elements contained in the list. The list is covariant in its element type.
Functions
Returns the index of the first occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.
Returns the index of the last occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.
Returns a list iterator over the elements in this list (in proper sequence).
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified index.
Properties
Inheritors
Extensions
Searches this list or its range for the provided element using the binary search algorithm. The list is expected to be sorted into ascending order according to the Comparable natural ordering of its elements, otherwise the result is undefined.
Searches this list or its range for the provided element using the binary search algorithm. The list is expected to be sorted into ascending order according to the specified comparator, otherwise the result is undefined.
Searches this list or its range for an element for which the given comparison function returns zero using the binary search algorithm.
Searches this list or its range for an element having the key returned by the specified selector function equal to the provided key value using the binary search algorithm. The list is expected to be sorted into ascending order according to the Comparable natural ordering of keys of its elements. otherwise the result is undefined.
Returns 1st element from the list.
Returns 2nd element from the list.
Returns 3rd element from the list.
Returns 4th element from the list.
Returns 5th element from the list.
Returns the first element, or null
if the list is empty.
Returns an original collection containing all the non-null
elements, throwing an IllegalArgumentException if there are any null
elements.
Returns single element, or null
if the list is empty or has more than one element.
Convert this list of Kotlin strings to C array of C strings, allocating memory for the array and C strings with given AutofreeScope.